package cn.kgc.tangcco.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/10/30 9:19
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Accessors(chain = true)
@ApiModel
@Component
@TableName(value = "clazz")
public class Clazz extends Model<Clazz> {
    private static final long serialVersionUID = -8155784466716125225L;
    /**
     * 班级编号
     */
    @ApiModelProperty(value = "班级编号")
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;
    /**
     * 班级名称
     */
    @ApiModelProperty(value = "班级名称")
    private String name;
}
